import request from '../utils/request.ts';

/**
 * 发送AI聊天消息
 * @param prompt 用户输入的消息
 */
export const sendAIChatService = (prompt: string) => {
  return request.get(`/ai/streamChat?prompt=${encodeURIComponent(prompt)}`);
};

/**
 * 删除所有聊天记录
 */
export const deleteAllChatService = () => {
  return request.get('/ai/deleteAllChat');
};

/**
 * 获取当前用户与AI的所有聊天记录
 */
export const getAllChatService = () => {
  return request.get('/ai/getAllChat');
};